#include<encode_manager.h>

#include <string.h>

	  

static int IsUTF16BEEncode(unsigned char* memory)
{
	char prefix_buffer[] = {0xFE, 0xFF};
	unsigned char* TempMem = memory;

	if(strncmp(TempMem, prefix_buffer, 2) == 0)
	{
		return 1;
	}

	return 0;
}


static EncodeOpr g_tUTF16BEEncodeOpr = {
	.name = "UTF-16BE",
	.IsEncodeSupport = IsUTF16BEEncode;
};

void UTF16BEEncodeOprRegister(void)
{
	RegisterEncodeOpr(&g_tUTF16BEEncodeOpr);
}

